package com.winhc.net.dto;

public class ResponseGen {
	
	public static <T> ResponseDTO<T> genResult(T data){
		ResponseDTO<T> result = new ResponseDTO<T>();
		result.setBody(data);
		result.setIsSuccess("T");
		return result;
	}

	
	public static <T> ResponseDTO<T> genErrorResult(String errorCode,String errorMsg){
		ResponseDTO<T> result = new ResponseDTO<T>();
		result.setErrorCode(errorCode);
		result.setErrorMsg(errorMsg);
		result.setIsSuccess("F");
		return result;
	}




}
